@import "mixins";

:host {
  --markdown-width: 0fr;
  display: grid;
  overflow: auto;
  background-color: var(--color-settings-background);

  grid-area: route;
  grid-template-areas:
    "docs settings"
    "menu menu";

  grid-template-columns: var(--markdown-width) 1fr;
  grid-template-rows: 1fr auto;

  .docs {
    padding: 1em;
    grid-area: docs;
  }
  .settings {
    padding: 1em;
    grid-area: settings;
    @include webkitScrollbar(nested-form-scrollbar);
    background-color: var(--color-nested-form-background);
    overflow: auto;
    label {
      display: flex;

      margin: 0.75em 0 0.25em 0;

      color: var(--color-settings-text);
      &:first-child {
        margin: 0 0 0.25em 0;
      }
    }
    .section {
      margin-top: 1em;
      border-bottom: 0.1em solid;
      border-bottom-color: var(--color-nested-form-label);
    }
    .inputContainer {
      display: flex;
      flex-direction: column;

      margin: 0.25em 0 0.25em 0;
      padding-left: 1em;
      .inlineLeft {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0.25em 0em 0.25em 0;
        .directoryInput {
          display: flex;
          align-items: right;
          width: 69%;
        }
      }
      .inlineGroup {
        display: flex;
        margin: 0.25em 0em 0.25em 0;
        justify-content: flex-start;
        align-items: center;
        .deleteItem {
          @include button();
          @include clickButtonColor(dangerous-click-button);
        }
      }

      .text {
        &.path {
          width: 30%;
        }
        color: var(--color-settings-text);
      }

      .ngToggleButton {
        font-size: 1em;

        margin: 0.25em 0 0.25em 0;

        @include ngToggleButtonColor(ng-toggle-button);
      }

      .clickButton {
        @include button();
      }

      .dangerousButton {
        @include clickButtonColor(dangerous-click-button, true);
      }

      .ngSelect {
        width: 15em;
      }
      .ngTextInput {
        @include ngTextInputColor(input);
        @include ngTextInput();

        width: 100%;
        grid-column: 4;
      }
      .clickButton2 {
        @include button();
        @include clickButtonColor(click-button);

        margin: 0 0 0 0.25em;
        margin-bottom: var(--margin-input-text);

        grid-area: button;
      }
    }
  }

  .menu {
    @include webkitScrollbar(parser-menu-scrollbar, 0.5em);

    display: grid;
    grid-area: menu;
    grid-template-areas: "lowerLeft . lowerRight";
    grid-template-columns: auto 1fr auto;
    .lowerLeft {
      grid-area: lowerLeft;
    }
    .lowerRight {
      grid-area: lowerRight;
    }
    overflow: auto;

    border: 0.5em solid transparent;
    background-color: var(--color-parsers-menu-background);

    .lowerLeft>div,.lowerRight>div {
      @include clickButtonColor(click-button, true);
      @include button();
      margin: 0 0.25em;
      &:last-child {
        margin-right: 0;
      }
      &:first-child {
        margin-left: 0;
      }
      &.dangerousButton {
        @include clickButtonColor(dangerous-click-button);
      }
    }
  }
}
